from django.shortcuts import render
from django.views.generic import TemplateView
from users.forms import SignIn,SignUp
from  some_index.models import PictureShow

# Create your views here.
class Showall(TemplateView):
    template_name = 'portfolio.html'
    login =SignIn()
    signup = SignUp()
    pictureshow = PictureShow.objects.all()

    def get_context_data(self, **kwargs):
        kwargs['mlogin'] = self.login
        kwargs['msignup'] = self.signup
        kwargs['pictureshow'] = self.pictureshow

        return super().get_context_data(**kwargs)